$(document).ready(function(){
	var temp = "<li class='cur'><span title='关于招聘计划'>关于招聘计划</span></li><li><span title='关于简历注册'>关于简历注册</span></li><li><span title='关于发展'>关于发展</li><li><span title='联系我们'>联系我们</span></li>";
	$('.FAQchoose ul').empty();
	$('.FAQchoose ul').append(temp);
	$(".FAQchoose ul li").live('click',function(){
		$(this).addClass('cur').siblings('li').removeClass('cur');
	})	
//	打开常见问题弹层
	$(".suspend .qa").live('click',function(){
		$("body").css({'overflow-y':'hidden','padding':'0 17px 0 0'})
		$(".suspend").css('margin-left',"577.5px");
		$(".FAQtc").show();
	})
	//关闭常见问题弹层
	$(".FAQclosebtn").live('click',function(){
		$("body").css({'overflow-y':'scroll','padding':'0 0px 0 0'});
		$(".suspend").css('margin-left',"586px")
		$(".FAQtc").hide();
	})

//	常见问题中的问题选择
	$(".FAQcontent .zpjhQuestion ul li").live('click',function(){
		$(this).css({'color':'#3a9bfc','text-decoration':'underline','background':"url('img/icons.png') -345px -1049px no-repeat"});
	})
	//点击提问时，出现问题对话框
	$(".FAQtiwen .tiwenBtn").live('click',function(){
		var qustionlyc=$(".FAQtiwen .FAQinput input").val();
		$(".FAQtiwen .FAQinput input").val('');
		var questionHtml='<div class="wendaQesR"><div class="xiaosanjiao1"><img src="img/FAQxsj1.png" alt="" /></div>'
		+'<div class="wenda1">'+qustionlyc+'</div>'
		+'<div class="wenda2">'+''+'</div></div>'
		$(".startwenda").append(questionHtml);
		$('.FAQhudong').animate({scrollTop:$('.FAQhudong')[0].scrollHeight+'px'},300)
	})
	
	//导航栏当前页面，做高亮标识
	var NavigatMark=$("body").attr('class');
	var centerLi=$("body").find('.head .center').children('li');
	if(NavigatMark=="index"){
		centerLi.eq(0).children('a').css('color','#e41f2b');
	}else if(NavigatMark=="shzpPages"){
		centerLi.eq(1).children('a').css('color','#e41f2b');
	}else if(NavigatMark=="knewhw"){
		centerLi.eq(4).children('a').css('color','#e41f2b');
	}else if(NavigatMark=="freshGraduate" || NavigatMark=="trainee" || NavigatMark=="returnedStudent" || NavigatMark=="doctoralStudent"){
		centerLi.eq(2).children('a').css('color','#e41f2b');
	}else if(NavigatMark=="body_gezx_gnsz" || NavigatMark=="subscribe" || NavigatMark=="ypjz"){
		centerLi.eq(5).children('a').css('color','#e41f2b');
	}
	
//	文字过长,加入省略号样式
//	tiwenBtn是faq中的提问，addBtn加入华为人才库，submitHWPeople提交并加入华为人才库,phoneCodeBtn注册页面中的获取验证码,search搜索按钮
//  submit_fbbtn面试反馈中，提交我的反馈按钮,jd_word1_4 offer确认跟入职信息确认,.line1 .title校园招聘下面，研发类跟非研发类
	var ellipsBd=$("label,dt,a,.tiwenBtn,.addBtn,.submitHWPeople,.phoneCodeBtn,.search,.submit_fbbtn,.setSubscribe .btn,.pro-tab .tab1,.pro-tab .tab2,.jd_word1_4,.research,.nonresearch,.line1 .title,.re_right dd,.indexBtm dl dd p,.head .center li li a,.body_gezx_gnsz .emailll,.body_gezx_gnsz .phoneee,.f16");

	ellipsBd.addClass("ellipsis_add");
	$(".ellipsis_add").live('mouseover',function(){
		var gettext=$(this).text();
		$(this).attr('title',gettext);
	})

//	max-width: 520px;display: inline-block;
	$(".f16").css({"max-width":"520px","display":"inline-block"});
	$(".f16").next('span').css({"overflow":"hidden","display":"inline-block"});
	$(".f16").next('span').next('span').css({"overflow":"hidden","display":"inline-block"});
	
	$(".suspend a").removeClass("ellipsis_add");
	$(".re_right .model_list dt").removeClass("ellipsis_add");
	
	if($(".suspend .qa span").text()=="FAQ"){
		$(".suspend .qa").css('line-height','43px');
	}else{
		$(".suspend .qa").css('line-height','');
	}
//	$(".re_right").onePageNav();
})


